package vista.panels;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JComboBox;

import cliente.ClienteImp;

public class PanelAltaCliente extends JPanel {
	
	
	/**
	 * Create the panel.
	 * @param cliente 
	 */
	public PanelAltaCliente(ClienteImp cliente) {
		JLabel lblRazonSocial = new JLabel("Razon Social");
		JTextField txtRazonSoc;
		JTextField txtCuil;
		JLabel lblCuil = new JLabel("Cuil");
		
		txtRazonSoc = new JTextField();
		txtRazonSoc.setColumns(10);
		
		txtCuil = new JTextField();
		txtCuil.setColumns(10);
		
		JButton btnAgregarCliente = new JButton("Agregar Cliente");
		
		JLabel lblPoliticasDeDescuento = new JLabel("Politicas De Descuento ");
		
		JComboBox comboBox = new JComboBox();
		
		JLabel lblPoliticasDeRegargo = new JLabel("Politicas De Regargo");
		
		JComboBox comboBox_1 = new JComboBox();
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(comboBox_1, 0, 98, Short.MAX_VALUE)
						.addComponent(comboBox, 0, 150, Short.MAX_VALUE)
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addGroup(groupLayout.createSequentialGroup()
									.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)
										.addGroup(groupLayout.createSequentialGroup()
											.addComponent(lblCuil, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE)
											.addPreferredGap(ComponentPlacement.RELATED)
											.addComponent(txtCuil))
										.addGroup(groupLayout.createSequentialGroup()
											.addComponent(lblRazonSocial)
											.addPreferredGap(ComponentPlacement.RELATED)
											.addComponent(txtRazonSoc, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(btnAgregarCliente))
								.addComponent(lblPoliticasDeDescuento))
							.addContainerGap(177, Short.MAX_VALUE))
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblPoliticasDeRegargo)
							.addContainerGap(394, Short.MAX_VALUE))))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(23)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblRazonSocial)
						.addComponent(txtRazonSoc, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnAgregarCliente))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblCuil)
						.addComponent(txtCuil, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblPoliticasDeDescuento)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblPoliticasDeRegargo)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(comboBox_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(131, Short.MAX_VALUE))
		);
		setLayout(groupLayout);
		/**
		 * Eventos
		 */
		btnAgregarCliente.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
			}
		});

	}
}
